package com.hczt.springcloud.servicefeign.service;

import org.springframework.stereotype.Component;

/**
 * 把今天最好的表现当作明天最新的起点．．～
 * いま 最高の表現 として 明日最新の始発．．～
 * Today the best performance  as tomorrow newest starter!
 *
 * @author marvin.ma
 * @create 2017-10-22 7:47
 * @desc SchedualServiceHi的fallback处理
 **/
@Component
public class SchedualServiceHiHystric implements SchedualServiceHi {
    /**
     * 调用了eureka-client服务的“/hi”接口
     *
     * @param name
     * @return
     */
    @Override
    public String sayHiFromClientOne(String name) {
        return "sorry " + name + ", server is not available.";
    }
}
